import os
from Config import *

f = open(demoFiles, "r")  
while True:  
	line = f.readline()  
	if line:
		line = line.strip('\n')
		swapFile = demoPath + "/" + line

		sf = open(swapFile, "r")
		swap_all = sf.read()
		for k in swapMap:
			v = swapMap[k]
			swap_all = swap_all.replace(k,v)
			line = line.replace(k,v)
		ceateFile = destPath + "/" + line
		cf = open(ceateFile, "w")
		cf.write(swap_all)
	else:  
		break
f.close()